<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <script src="../vue.js"></script>
  </head>

  <body>
    <div id="app">
      {{value}}
      <button @click="value+=10">增加10</button>
      <template v-if="value>=90">
        <div>A</div>
        <div>针不戳</div>
      </template>
      <template v-else-if="value>=80">
        <div>B</div>
        <div>灰常nice</div>
      </template>

      <template v-else-if="value>=70">
        <div>C</div>
        <div>加油哇</div>
      </template>
      <template v-else="value>=60">
        <div>D</div>
        <div>never give up your dream</div>
      </template>
    </div>

    <script>
      const vm = new Vue({
        el: "#app",
        data() {
          return {
            value: 10,
          };
        },
      });
    </script>
  </body>
</html>
